package com.yellow.courierservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("shift_schedules")
public class ShiftSchedule {

    @TableId(value = "schedule_id",type = IdType.AUTO)
    private Integer scheduleId;

    @TableField("courier_id")
    private Integer courierId;

    @TableField("shift_date")
    private LocalDate shiftDate;

    @TableField("start_time")
    private LocalTime startTime;

    @TableField("end_time")
    private LocalTime endTime;
}
